﻿///////////////////////////////////////////////////////////////////////////////
/// Copyright (c) by longshuang@msn.cn 2014.
/// All rights reserved.
///
/// @File	: Engine.Types.hpp
/// @Brief	: 常用类型定义
/// @Author	: Leo Zhao <longshuang@msn.cn>
/// @Date	: 2014-12-03
///
/// CHANGELOG
/// 	2014-12-03	定长数据类型的定义
///////////////////////////////////////////////////////////////////////////////
#ifndef		__ENGINE_TYPES_HPP_INCLUDE__
#define		__ENGINE_TYPES_HPP_INCLUDE__

#include	<cstdint>

namespace Engine {

	/// @Brief	: 定长有符号数据类型
	typedef	int8_t	Int8;
	typedef	int8_t	Byte;
	typedef	int16_t	Int16;
	typedef	int32_t	Int32;
	typedef int64_t	Int64;

	/// @Brief	: 定长无符号数据类型
	/// @Note	: 使用时注意避免出现for (UInt8 n = 10; n > 0; --n)这样的BUG出现
	typedef	uint8_t		UInt8;
	typedef	uint8_t		UByte;
	typedef	uint16_t	UInt16;
	typedef	uint32_t	UInt32;
	typedef uint64_t	UInt64;
};

#endif//!	__ENGINE_TYPES_HPP_INCLUDE__

